/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSky.factory;

import ru.jSky.factory.BridgeFactory;
import ru.jSky.interfaces.JSkyMod;
import skyproc.Mod;

/**
 *
 * @author Rakev
 */
public class ModFactory {

    private BridgeFactory bridgeFactory = new BridgeFactory();

    public JSkyMod create(String modName) {
        return create(modName, false);
    }

    public JSkyMod create(String modName, boolean master) {
        Mod adaptingMod = new Mod(modName, master);
        return bridgeFactory.createBridge(adaptingMod);
    }
}
